﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using IDAL;
using Model;

namespace BLL
{
    public class JointingCheck : BaseService<JointingCheckInfo>
    {
        private static readonly IJointingCheck dal = DALFactory.DataAccess.CreateJointingCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<JointingCheckInfo> GetJointingChecksbySN(string productSN)
        {
            return dal.GetJointingChecksbySN(productSN);
        }

        public IList<JointingCheckInfo> GetJointingChecksbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetJointingChecksbyDT(starttime, stoptime);
        }

        public IList<JointingCheckInfo> GetJointingChecksbyPIDDT(string productTypeID, DateTime starttime, DateTime stoptime)
        {
            return dal.GetJointingChecksbyPIDDT(productTypeID, starttime, stoptime);
        }
    }
}
